home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cserial.zip
/
QUEUE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1990-04-04
|
824b
|
37 lines
/*
* QUEUE.H
*
* Written for the
*
* Datalight
* Microsoft V 5.x
* TurboC
* &
* Zortech
*
* C Compilers
*
* Copyright (c) John Birchfield 1987, 1988, 1989
*/
typedef struct {
int size,
head,
tail,
avail;
char *buf;
} QUEUE;
# define queue_empty(qp) (qp)->head==(qp)->tail
# define queue_avail(qp) (qp)->avail
# ifndef LINT
extern QUEUE *alloc_queue ();
extern int en_queue ();
extern de_queue ();
# else
extern QUEUE *alloc_queue (int);
extern int en_queue (QUEUE *, char);
extern int de_queue (QUEUE *);
# endif